<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html >
<html>
<head>
<script type="text/javascript">
</script>
</head>
<c:if test="${code==1}">
	<script type="text/javascript">
		
	</script>
	<body>
		<div id="searchOrders_div_interval"></div>

		<div id="outside_div">

			<form id="pagerForm" method="post"
				action="oneHourOrdersCountAction?toResult=oneHourOrdersCount&rightId=${rightId}">
				<input type="hidden" name="pageNum" value="${page.currentPage }" />
				<input type="hidden" name="pageSize" value="${page.pageSize }" /> <input
					type="hidden" class="date" name="startTime" value="${startTime}" />
				<input type="hidden" class="date" name="endTime" value="${endTime}" />
				<input type="hidden" name="realName" value="${realName}" />
			</form>

			<form id="searchOrdersCount_search"
				onsubmit="return navTabSearch(this);"
				action="oneHourOrdersCountAction?toResult=oneHourOrdersCount&rightId=${rightId}"
				method="post">
				<div class="pageHeader">
					<input type="hidden" name="init" value=0>
					<div class="searchBar">
						<table class="searchContent">
							<tr>
								<td>用户名: <input type="text" name="realName"  value="${realName}"/>
								<td>开始日期：</td>
								<td><input type="text" class="date" name="startTime"
									value="${startTime}" /></td>
								<td>结束日期：</td>
								<td><input type="text" class="date" name="endTime"
									value="${endTime}" /></td>
							
								<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
								<td>

									<div class="buttonActive">
										<div class="buttonContent">
											<button type="submit">检索</button>
										</div>
									</div>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="pageContent">
					<div class="panelBar">
						<ul class="toolBar">
						</ul>
					</div>
					<table id="" class="list" width="100%" layoutH="138">
						<thead>
							<tr>
								<th align="center">序号</th>
								<th align="center">快递员姓名</th>
								<th align="center">订单总量</th>
								<th align="center">1小时完成量</th>
								<th align="center">两小时外完成量</th>
								<th align="center">一小时取件比例</th>
							</tr>
						</thead>
						<tbody>
							<s:iterator var="oneHourCount" value="page.data"
								status="st">
								<tr target="sid_support">
									<th width="1%" align="center"><s:property
											value="page.pageSize * (page.currentPage-1) + #st.index + 1" /></th>
									<th width="8%" align="center"><s:property value="#oneHourCount.realname" /> </th>
									<th width="8%" align="center"><s:property value="#oneHourCount.allOrdersNum" /> </th>
									<th width="8%" align="center"><s:property value="#oneHourCount.oneHourOrdersNum" /> </th>
									<th width="8%" align="center"><s:property value="#oneHourCount.afterTwoHourOrdersNum" /> </th>
									<th width="8%" align="center">
									
									<s:if test="#oneHourCount.allOrdersNum>0">
										<s:property value="#oneHourCount.oneHourOrdersNum*100/#oneHourCount.allOrdersNum"/> 
									</s:if>
									<s:elseif test="#oneHourCount.allOrdersNum==0">
											<span style="color: red">0</span>
									</s:elseif>
									%
									</th>
									
								</tr>
								</s:iterator>
<%-- 								<tr>
									<th width="8%" align="center">总计</th>
									<th width="8%" align="center">区域总和</th>
									<th width="8%" align="center"><s:property value="#request.oneac" /> </th>
									<th width="8%" align="center"><s:property value="#request.onebc" /> </th>
									<th width="8%" align="center"><s:property value="#request.onecc" /> </th>
									<th width="8%" align="center"><s:property value="#request.oneac+#request.onebc+#request.onecc" /> </th>
									<th width="8%" align="center" style="color:red;"><s:property value="(#request.oneac+#request.onebc+#request.onecc)*100/#request.oneec" />% </th>
									<th width="8%" align="center"><s:property value="#request.onedc" /> </th>
									<th width="8%" align="center"><s:property value="#request.oneec" /> </th>
								</tr> --%>
							
						</tbody>
					</table>
					<div class="panelBar">
						<div class="pages">
							<span>共${page.totalNum }条，共${page.totalPage }页</span>
						</div>
						<div class="pagination" targetType="navTab"
							totalCount="${page.totalNum }" numPerPage="${page.pageSize }"
							pageNumShown="10" currentPage="${page.currentPage }"></div>

					</div>

				</div>
			</form>


		</div>
	</body>
</c:if>
<c:if test="${code==0}">
${message}
</c:if>
<script type="text/javascript">
	/* $(document).ready(
		  

	); */
</script>

</html>

